package com.itheima.case2.service;

import com.itheima.case2.pojo.po.Role;
import com.itheima.case2.pojo.vo.AddRole;
import com.itheima.case2.pojo.vo.PageResult;
import com.itheima.case2.pojo.vo.QueryPageBean;
import com.itheima.case2.pojo.vo.UpdateRole;

import java.util.List;

public interface RoleService {
    //查询角色所有信息
    List<Role> queryAllRole();
    //分页查询角色和对应权限信息
    PageResult queryRoleAndPerByPage(QueryPageBean pageBean);
    //修改角色和对应权限信息
    void updateRoleAndPer(UpdateRole updateRole);
    //添加角色和对应权限信息
    void insertRoleAndPer(AddRole addRole);
    //删除角色和对应权限信息
    void deleteById(String roleId);

}
